package com.imedia.frame.lucene.service;

import java.util.List;
/**
 * <p>Title: 全站检索</p>
 * <p>Description: lucene检索模块接口</p>
 * <p>Copyright: Copyright (c) 2009</p>
 * <p>Company: </p>
 * @author qiuy
 * @version 1.0
 */
public interface IIndexService {
	/**
	 * @description 建立索引
	 */
	public void createIndex() throws Exception;
	/**
	 * @description 建立索引 公共方法
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public void createIndex(List indexList) throws Exception;
	/**
	 *@description 追加索引
	 * @param object
	 */
	public void appendIndex(Object object);
	/**
	 *@description 追加索引 增加新大量数据
	 * @param object
	 */
	public void appendListIndex()throws Exception;
	/**
	 *@description 删除索引
	 * @param object
	 */
	public void deleteIndex(Object object);
	/**
	 *@description 更新索引
	 * @param object
	 */
	public void updateIndex(Object object);
	/**
	 * @description 初始化索引目录
	 */
	public void initIndexDir();
}
